package com.systemsjr.jrenterprise.service;

import com.systemsjr.jrenterprise.service.vo.ServiceVO;
import com.systemsjr.jrenterprise.utils.ServiceUtils;
import com.systemsjr.jrlib.richclient.BaseItemControl;

public class ServiceControl extends BaseItemControl<ServiceVO> {

	@Override
	public void handleDeleteItem(ServiceVO item) {

		ServiceUtils.getServiceService().delete(item);
	}

	@Override
	public ServiceVO handleNewItem() {
		return ServiceUtils.createDefaultService();
	}

	@Override
	public ServiceVO handleSaveItem(ServiceVO item) {
		return ServiceUtils.getServiceService().save(item);
	}

}
